import service from '@/utils/request'
// @Tags EquipmentMaintenance
// @Summary 创建equipmentMaintenance表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.EquipmentMaintenance true "创建equipmentMaintenance表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /equipmentMaintenance/createEquipmentMaintenance [post]
export const createEquipmentMaintenance = (data) => {
  return service({
    url: '/equipmentMaintenance/createEquipmentMaintenance',
    method: 'post',
    data
  })
}

// @Tags EquipmentMaintenance
// @Summary 删除equipmentMaintenance表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.EquipmentMaintenance true "删除equipmentMaintenance表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /equipmentMaintenance/deleteEquipmentMaintenance [delete]
export const deleteEquipmentMaintenance = (params) => {
  return service({
    url: '/equipmentMaintenance/deleteEquipmentMaintenance',
    method: 'delete',
    params
  })
}

// @Tags EquipmentMaintenance
// @Summary 批量删除equipmentMaintenance表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除equipmentMaintenance表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /equipmentMaintenance/deleteEquipmentMaintenance [delete]
export const deleteEquipmentMaintenanceByIds = (params) => {
  return service({
    url: '/equipmentMaintenance/deleteEquipmentMaintenanceByIds',
    method: 'delete',
    params
  })
}

// @Tags EquipmentMaintenance
// @Summary 更新equipmentMaintenance表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.EquipmentMaintenance true "更新equipmentMaintenance表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /equipmentMaintenance/updateEquipmentMaintenance [put]
export const updateEquipmentMaintenance = (data) => {
  return service({
    url: '/equipmentMaintenance/updateEquipmentMaintenance',
    method: 'put',
    data
  })
}

// @Tags EquipmentMaintenance
// @Summary 用id查询equipmentMaintenance表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.EquipmentMaintenance true "用id查询equipmentMaintenance表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /equipmentMaintenance/findEquipmentMaintenance [get]
export const findEquipmentMaintenance = (params) => {
  return service({
    url: '/equipmentMaintenance/findEquipmentMaintenance',
    method: 'get',
    params
  })
}

// @Tags EquipmentMaintenance
// @Summary 分页获取equipmentMaintenance表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取equipmentMaintenance表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /equipmentMaintenance/getEquipmentMaintenanceList [get]
export const getEquipmentMaintenanceList = (params) => {
  return service({
    url: '/equipmentMaintenance/getEquipmentMaintenanceList',
    method: 'get',
    params
  })
}

// @Tags EquipmentMaintenance
// @Summary 不需要鉴权的equipmentMaintenance表接口
// @Accept application/json
// @Produce application/json
// @Param data query equipment_maintenanceReq.EquipmentMaintenanceSearch true "分页获取equipmentMaintenance表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /equipmentMaintenance/getEquipmentMaintenancePublic [get]
export const getEquipmentMaintenancePublic = () => {
  return service({
    url: '/equipmentMaintenance/getEquipmentMaintenancePublic',
    method: 'get',
  })
}
